That's what I'm trying to say. Everyone was in the same place. Everything looks hard, I know that. That's what I'm trying to say, if you can't then skip the code. Find another code to adapt, play with. Slowly, with time when you understand how given line works - you find out that other files use the line that you have error - you know the solution.
In short, if you don't know to +-, then don't try to learn how to *. :P
Add this code in Eclipse as well, so you get erros, tips, solution from Eclipse side.
About htm issue and other things, a tip. Use search in Eclipse and search for "HtmCache.getInstance()" you will get many results, compare both structures and you will find out what to remove.