replace tabs with spaces, close file handle
replace tabs with spaces
style fix
Merge pull request #5 from bgruening/master

Small style fixes and close some file handle.