fixed bug with posting comments. minor style fixes