Fixed build errors and added linting