Removed trailing whitespace
Fixed writing beyond array bounds
Version 0.4.4