improved troyd code to reflect the changes of latest version of robotium till date, which is 5.1, also modified robotium code to accomodate some custom features