Copying top to core as a base for separating core and top.
Separation of core and top pre syntax fixes.