Updated code structure & documentation.