initial commit of code files

These are (mostly rough) code files including the original code.