checkDeprecatedEnvironment function added
checkDeprecatedEnvironment function added

Removed the functionality from the main method to a specific function.
The minimal accepted versions are still in the main method for clarity.

RPeschke/matlab2tikz,miscco/matlab2tikz,LJeub/matlab2tikz,egeerardyn/matlab2tikz,egeerardyn/matlab2tikz,okomarov/matlab2tikz,PeterPablo/matlab2tikz,okomarov/matlab2tikz,nidrosianDeath/matlab2tikz,matlab2tikz/matlab2tikz,matlab2tikz/matlab2tikz