basic functions working

buttons working, next up error codes