main.py: rename addEventRow to appendEventRow, change it's argument order, add insertEventRow and insertEventRowAfter