Add tests, readme, and other changes. Should run ok now