Made tendiwa-core installable by Maven, fixed some bugs.