Envelope, graphing functions in main body

This will be fixed eventually. Also, MATLAB is crashing when moving on
to the second file. Potentially a bug in the environment or in my
declaration.