Bug repair and Comment additions, + readme

fixed slight code errors, streamline and reduced code volume, increased
commenting. Wrote implimentation explanation.