added code for closing file descriptors
improved logger
renamed folder