Tidied up some docs and added an AudioFormat constructor.
Changes to ResizableWindow to avoid flicker when first adding to desktop.