Include error messages in listing and debug files

Closes #3
Cleanup
Add more or less paranoid malloc/realloc checks
Refresh OS X and Windows executables