Added a top-level environment + refactored the predifined functions + comitted using VS!