Organized code, renamed variables and functions, started documentation.