Made a lint script and fixed all lint warnings.