fixed memory errors introduced from August 2012 refactoring changes.  debugging, .gitignore