Api Cleaning and documentation