[readme] Converted the readme file to a markdown file
[close] Cleaned up some more code and added new dialogclose method to the readme file