added creating machine via rest, added output formatting