started adding inline documentation.