commenting test files and api file

also slight change to getApplications() to just use queryObj
dealt with issue mentioned in github

also some commenting