fix bugs:
1. NPE in MPReader if file starts with comment
2. Lost last character while reading key values pairs