1. Added support for edit hardware

2. Changed the List Environments With State and GetEnvironmentState to a new method returning more detailed result.
fix for formatted get environment state command line