updates for PEP-8 compliance and sphinx documentation