Finally Fixed the Open Function.
Further work on Open.
Added some javadoc for some of the methods