fixed #1013
fixed a menu structure
error that reports main function to not be exported is fixed.
fixed #930