Change intendation to spaces
Use ShortBuffer to extract short data from stream

Previsouly the conversion was calculated "by hand" in the
HeartManInputStream; now this calculation is done by the core
ShortBuffer class.