added some gui testing and modified cli side to include defined functions