got working as a gem; updated readme accordingly