Updated some language. Reorganized structure. Added PHP wrapper.