Adding ability to easily modify environment gravity. Removed useless system sleeping during env steps. Made XMLfile into new style object