added .gitignore
first (maybe not so nice) attempt to re-partition the code
fixed a crash reported in  Issue #1