Merge pull request #1 from JoeStaines/master

Fixed links, added createbet, some other stuff
checks parameter validity and general cleanup
Merge remote-tracking branch 'upstream/master'