Some minor.
Added safty.
Fized issue with {\begin{}}\end{}
Changes issues, added some comments.