Design of base components + Clock

* Code improvement
* Clock implementation
* Tests
* License headers
Use the version 2.3.6.