Added code and comments to skeleton from intiial fork.