added red-black tree; cleared commens a bit