Added statement of no implied warranty to all files. Cleaned up some code/bugs.