Added a sprinkling of doc
Added comments