Restructured code a bit. Now checks if the set environment variables for an editor work. Can now use special interval syntax.