added first version of several key functions.
added unit test for addPost and getPost
definitely bugs in code need to add more tests