resolve some warnings
more consistent formatting, fix more warnings
long-overdue .gitignore