Added unit tests. Cleaned up, commented code.  Version 1.0.