Refactored code. Deleted unnecessary files.