Cleared declarations from unused variables
Added support for thumbnails
Added clear_all method
xml edits