moved axis querying into own function, added .gitignore