delet .DS_Stores, add pyc to gitignore, improvements to queries