Add some more functions to the rtlib and fix the input type on some previous functions.
Merge pull request #191 from pjonsson/more-rtlib

More rtlib work