fix header capitalization
fix signed/unsigned comparison