use SparseArray instead of HashMap
fix formatting, bump version.