Added user, doc and post functionality