Load balancing added; makefile improved