Minor code fixes for readability. Major documentation completed.