renamed loadmodule because of window.h conflict, added funtionality to show/hide console