Cleanup unused but set variables and uninitialized variables

Some error variables were removed as they weren't used but
keeping a listing of error variables that need to be checked
would probably be a good idea
Merge pull request #16 from wortiz/cleanup-pull

Cleanup unused but set variables and uninitialized variables
Initialize variables, fix empty string
Remove semicolons creating empty body if statements