Getting line labeling added

Several generalized struct functions implemented.