fixed memory cleanup, moves caching around.
Adds refresh to menu to reload the cache folder.
Merge pull request #21 from rogerthomas84/performance-changes

Performance changes