add Error check and new Error: AlignError
finished the class of AlignOptions, but not for all option of attribute.
Finished AlginOptions class and Algin function