create command hash and move byte methods to interface.rb file