All plotting algorithms work so far. Some tests added.
Added PHP code generation script