Added BOSS sample usage, fixed a couple of bugs