ping handling moved to right postion
renamed errorResponse, added comments
using template file, added comments
own template file