Fixed the 100% CPU utilization bug and replaced the bool() cast operator for data by empty()
Merge pull request #35 from sradomski/master

Fixed the 100% CPU utilization bug and replaced the bool() cast operator...