Test for writable before trying to write file
Throw a proper err for permission troubles
added version class
Merge branch 'release/0.1.0'