Reformatted everything.
Added button actions.