Added vindow initialization, more main stub