partially fixed case indentation

Partially fixes #57, note that insertion mode still doesn't work correctly.