fixed bugs: zero pointing offsets, proper normalization