Added code documentation and updated the package README