implementing once
cleanup and removing log.h dep
adding build and install scripts to make file and fixing things