Fixed errors and warnings, added RNode code

Signed-off-by: Gabriel Reiser <gabriel.reiser@mybrighthouse.com>