made api to json...duh.
fixed some controller issues and added additional methods