Some slight changes in core, updated tests and license information. Updated README.