Raised version to v0.5
Redirect error messages to logfile