New tag query and creation functions
Clean up code
Add identify command