added converter functions, made everything work

I'm basically a CS goddess