Commented all files, removed unused files, fixed the resize function