BUG: correct array names for unaligned check

Correct names of input arrays to chack for alignment.
RF: trailing whitespace cleanup
Merge pull request #1 from matthew-brett/for-sturla

MRG: array name fix and whitespace cleanups