added basic analysis functions, ability for store object to query 4store, tests for both