Develop

add pre-processing before alignment
bug fixes
improve error display