Move Some Stuff Around

Added namespace pistol
moved the struct definitions and function prototypes into the pistol
header file.
defined the functions within the pistol c ++ file.
fixed some mis-capitalized keywords