Reworked lectures system and added email notifications