fix spacing; code style; file input-/output handles
code style (Exceptions not in if/else if possible to place in front of actual logic)
should not be in repo