change max line length to 100 and fix warnings