Cleaned up some functionality, added dialog for function description