Refactored code

Changed camel casing to snake casing in compliance with standard C
conventions