works but ugly
added simple test
udpated readme