Added comments, code formatting, lengthened sleep