Implementing the main function.
Add description to README.