Add support for OSX
Add support for memory widget

also add extra checking for existing commands
checking for existing file