Renamed rv to result.
FIXMEs and more documentation.
More FIXMEs.