Added mouse selection.
Added file support