Initial fork of the code from Mark's repository along with authorship and local file changes.