Initial checkin to Github

Working code, but tested only as the main test program does.