Adds changes due to hlint and documentation.