Update logInsert.py

Added documentation in code