Alignment class rewritten.
Minor cosmetics.
Scoring infrastructure added.