Added beef core things
fixed compile errors