made Console independent of Main
Merge pull request #1 from gtwms/master

made console.as more independent