Added support for default values of parameters. Fixed the reporting of compilation errors