Fixed a bug in frmGui and added text alignments

fixed a bug where frmGui whould never close, and added text alignment
option to the hook dll