Added some API doc comments, add default values to new window call