use file() instead of file_get_contents() and preg_split()
trim both key & value
clean up extra lines
Merge pull request #13 from aaemnnosttv/master

Suggested Enhancements