sanitize the code somewhat, define behaviour on i/o errors, refactor
adjust compiler flags
update copyright information everywhere
update (empty) TODO
bump version to 0.0.2