Improve code

- Add function comments
- Use $this->parameters in UserAction