PHPDoc added and cleaned up
Added IP validator utilitie
Added tests and fixed bugs