Added documention for core programming structure. Added test cases as well