Mega patch

- adds versioning (fix #10)
- adds “make dist” to CMake (fix #11)
- fixes “inline” bug (fix #9)