Merge pull request #5 from pmur002/master

paul changes to code
rip_old is the old rip()
small improvements from Paul