Commented and organized type.h, also carefully went through init() and mount_root()