close issue #8

I added code and documentation to pick the alignment automatically.

I don't know how to write tests for this since it depends on hardware. I tried it on multiple computers and it always picked the correct alignment.