made small changes to main code
deleted unwanted files
made API
deleted unwanted files for API