Added config file checking
File type is directory fix
Wrong file param
Added user and group
Merge pull request #3 from adam-paterson/master

Custom config