Update init.php

Added error handler, and ICEBB_ROOT detection