Updated API documentation and moved to README