Fixed R bug

now it doesn't crash and get confused on bad input
also removed old V2.  There's nothing in that file that isn't in v3
Merge pull request #6 from mrjax/master

Fixed R bug