remove returns, spelling correction, minor code changes for readability