Implement unit.command

Fix #27