started adding api functionality and simple front end stuff