exclude annoying vs (log) files from git tracking
add gitignore
tidy up main function