Some optimizations..

* Added domain validation
* Added 'helpful' exception messages
* Fixed duplicated '.php' file name ending