Refactor dimension code to improve robustness; update README
Create release v0.3