Fix bug drawing last row

The last row is now drawn even when it contains less than 60 residues.
Moreover, the code has always been cleaned up.