fixed convertLM
add function is_std
small fixes
renamed & restructed alignment function
lm preparetion code complete