Removed old directories
Added first version of offline query function.