lint configuration and various cleanup