Add rakefile for rake lint command
Fix some lint warnings