Unit tests+header option

Hi! I started work on unit tests (phpunit). Also added configuration option to change header elements.