Started working on a function to print the symtab

Also fixed headers to avoid cyclic inclusion problems.