added init function and debug information display