Added lint task, edited code to pass lint.