Highly improved comments and documentation