Added the actual implementation. Provided more information in the README.