added some error handling code
changed column indices to 1-based
added basic unit testing script
added .gitignore file