Source code updated

Code has been cleaned, a readme file has been added, all test versions
have been removed and the source code updated.