docstring formatting in ps module and whitespace removal

@thatch45, do you want optional args in the docstring to look like this:

```bash
[ arg=value ]
```
or this:

```bash
[arg=value]
```