added environment selection in web-app command, updated naming and tests
add comments, updated code formatting