added main fn detection & fixed a lot of fndeclnode's codegen problems
now it actually calls the codegen so we can test, haha