Corrected bugs when elements are missing, updated comments to reflect changes and a few formatting fixes.
Corrected bugs when elements are missing, updated comments to reflect changes and a few formatting fixes.

laffer1/justjournal,laffer1/justjournal,laffer1/justjournal,laffer1/justjournal