rename init.0 to init and make the code nicer

Signed-off-by: Grarak <williye97@gmail.com>