fixed bug in select_a
fixed prev_pos()
check maxline
README