Updated code and documentation

Made updates to 3 code files and included 4 pieces of new documentation.