fixed bug in brickpi.js, changed print statements, etc