Added OpenFile support

Close #3