add missing include statement
add documentation for checkAlignment method