Added templates. PEP8 naming convention done.

Added templates. Modified functions to follow PEP8 naming convention.
Modified parameters and attributes to follow PEP8.