First fully working version.
Added doc, license and error handling.
Version bump