Added constructor from color name.
Fixed constructor bug and added method to get the directory.
Fixed issue with fclose().