added res/req header descriptions, jsons

- Added descriptions of request&response headers for all /put & /post
commands regarding the VMs

- Cleaned up code