document the remaining functions.
add double comparator helper.
basic light tests.