Added detailed description of code and use