Corrected errors in code, removed unnecessary files