Added comments, bugfixing to ulog.