updated w usage function
added some unit tests