Design of base components + Clock

* Code improvement
* Clock implementation
* Tests
* License headers
By using the currying principle?