fixed syntax bugs
added main module