Added lint task and fixed some errors