put focus in main window
add function signature + add lib en makefile