bug fixes and added gui and json