Added the documentation for Program structure. Added the test cases for ...

Added the documentation for Program structure along with the test cases in the class `PackageTest`. 

Thanks.