Fixed warnings and added file header comment