Adjust Rakefile
Add basis specs
Little refactoring for core.rb
Merge pull request #10 from gogotanaka/add_specs_and_little_refactoring

Add specs and trivial refactoring