Some corrections

Please, consider not writing executable code in header files. Header files are for definitions and prototypes only.
                  Best wishes,
                  mnxoid