changed some functions, added more buttons, load files, etc