Added the package inout and added more javadocs