Fixed several lint warnings and errors

There were 13 warnings and 1 error which are now fixed.