Added labels to improve debugging and fixed y coordinates
Added padding. Improved how y coordinates were calculated.