Skeletal documentation added. Needs completion and cleanup.