refactored stafflines; changed method of calculating vertical positioning; refactored the "mark" decoration