Minor bug fixes and tweaks
add .gitignore