Restructuring of code to make it available as a package
README updated
Standarized tests format