refactoring
updated ignore
refactorting , cutting down modes.py
added :log built-in function. Let's program write to log