more coding...

1. Main Loop events
2. ErrMsgStr()
3. main.c got alot smaller now that all the functionality was moved
outwards..

more to come.. time to modularize some more code