POST handling added. Some little syntax changes.