fixed positioning for "middle"

also added normalization to o.buffer input when calculating
and removed a console.log i left in