fixed bugs in rshell.cpp; updated README; added tests/in