Added rlib library
Made all scripts work with new rlib