Various changes, fix gemspec
added Core module