changes to Length class and general formating changes