added code
added usage to readme