Cleaning up API and writing README