fix variable name, standardize comments, set a default as readonly