some bugfixes.
bug in makefile is fixed.
continus with core function