Added create initial window function and added doxygen comments to main