Added some more helper functions i.e. Replication, adding document etc...
Works for now but not overly complex.