cheking status.h with DEBUG. fixing and checking init.c
fixing minor bugs
improving and simplifying status.h