Adding restling module with fixed code

Sorry to open another PR.