better way to open, closes file when done
Better config load, better comments