finished off some fxns, added example to readme