fixed a few bugs and added golang stuff