sort imports
fix comment
add tests for ReadCharm non-nil return