more comments, pep8 compliance for ServiceCode.pys