Added code comments and complemented the readme file