Updated Documentation

added additional comments and doc strings