Changed datetime method in models.py, added api.py (WIP)
Docs and two functions for API