added some documentation

added some usage documentation of the code