adding new package,class and test for command lines

creating buildIndex command