Implemented auto formatting

closes #10