Some clean up. Some of the if statements in c_gets_axb and u_gets_axb may still be buggy. Checking them later.