Initial version, non-functional
Rewrote completely
Updated readme