initialize variables and added checks for empty data
Merge pull request #209 from wriley/info1_errors

initialize variables and added checks for empty data