remove redundant code.
fix insert_vspace() and a number of vertical placement bugs.