make everything DRYer / refactor / bugfix
added debug command & rakefile target
refactor & polish for v0.1.0