parse out priority json objects. Fixes #3
cleanup
added calculated rank to hash. Fixes #4
added tests and cleanup