added documentation, code cleanup and changed naming to instance instead of vm
and added api to url