added rps module, fixed minor bugs, removed the redundant test.sh