Added command line tool for querying SP's. Will be extended further later.