fix coffeelint errors

Fix errors raised by RTD, and some of the coffee issues I raised in the code review for those files.