checks triggers and documentation

added trigger checking and changed some of the documentation