started API documentation. more to be checked in later