Code cleanup, added getledgeo command