Library for X10?

Hi, I know there is a library for X10 communication to the X10 controllers. But is there a library for Arduino to act as controller? I mean to recieve X10 commands from the serial.

I work on my own home automation project with a custom made controller based on Arduino Mega. The idea is to control my home via PC -> Serial -> Arduino. But for that I need some software on the PC. Why to write another one, when there are hunderts of Home Automation softwares on the market? All I have to do is to make my firmware speak some of the well know protocols. The most supported protocol is X10. So, is there something similar already done?

Thanks in advance