add first draft of rpy, improve and finalise ua_parse
rpy tweaks and improvements, along with documentation for the function
rpy documentation tweaks and some associated convenience functions