Started work on new version

* Implement Bones framework
* Fixed a few errors
* Boosted performance