added int normalization with tests
resolves #5
resolves #10