#29 sourecodelistener now gets only main frame instance as parameter
#29 fixed bug in default file type