imported user contributed DrawAlignedText function, slightly modified to fit our formatting
added comments for new function