Modified... stuff and added documentation for the gui api