Code Restructuring

Separated the .c source into prototypes and definitions + a validation
test module. Also added another source file which is a test that
requires no input.