with typo fixing
Cleaned up PHP things - and added better markdown support.