porting source code from SVN repo

Here is the first port of the source code from our local svn server
onto GitHub (svn commit #5673)
Merge pull request #1 from GullyAPCBurns/master

Sync with BMKEG repo