Fixed some command bugs/Added optional config file.