Restructured main Kobayashi classes into /lib