main code of the project.

take a look at readme.txt