Initial commit of reference source code, I will apply my changes from
here. -Frank Dye