rclean function

Compiles an RSP document into a preprocessed and validated RSP document