tobz/phosphorus — pull request #1 by egonelbre (2014-02-02 10:37:35+00:00)
Title: Simplify and restructure code.

I did a little exercise in restructuring your code :).

Feel free to take/leave whichever parts you find useful.