7th Commit

Added hasFirst check (unused for now)

A few tweaks and tests to ensure program compiles.