added some rough and ready documentation