Fixes blank lines and endings