adding documentation for programming assignment 4