double (multi) lesson support

added support to merge multiple lessons of same type if followed by each other