Added logging and files closing.
Recursion changed
Added images for info loading. Some templates was moved to subdirectories.