added a configfile and start to write a libfile