Improved init routine. Better documentatio in comments