Functionally correct

The lab1 is practically ready to ship.  Need to document everything in
the source code first though.