Merge pull request #89 from acaloiaro/master

Fixes #87: Harmonizes sample() behavior with that of GNU R
replaced constant vectors with rep vectors of size 1
disable debug flag again
Syncing with upstream: bedatadriven/master