Checking for good coding practice

Added necessary comments... adding more later