made api more uniform
more or less finished api v1