main function

I  have remove some file from the package and renamed  the main function