[refactor][s]: move to class / prototype style for core lib.
[#4,init][m]: working init command.