use 2 space tabs
code style
add .appendFile & refactor (Closes #9)