Added basic error detection in parsing by changing return type to int instead from void. If error is detected, parsing is immideately stopped. Also, now supports multiple files.