fixed a bug that prevented a stream to be closed.
Added a message box to show errors when opening a file as argument.
Improved GUI. Now it is possible open Textures from a given directory.
Importing is still limited to one texture at the time. Also improved the property grid with categories.