reorganize the code and check for various modes
make it consistent: allow Giza style alignment for single input (TODO: posterior?)
updated documentation