restructured packages, added executable interface, fixed command toString methods