added copyright and license, removed uuid and json third-party libraries since they are no longer needed, fixed a few minor bugs, added init event