First commit too simplistic and didn't work for ledger lines.

Error was in determining stem X pos. Improved.