Removed old optimize function
Changed name to library
changed function name
Changed Makefile
Resolved name problems