Fix build_url and calculation of script_url
add error check in parse_code for missing end command
Added VERSION variable
First version of environment script
Updated documentation