Some godoc and the first shot at adding types