Made time Jav 5 compatible
Fixed warnings + Unit tests
Fixed FB warnings + Cosmetics