Changed PS1 and named functions better.