Add case argument check (#118)

Also re-indented the file