Improvements to the environemnt creator and bux fixes