Changed license to LGPL.
Fixed header guards.
Cosmetic changes.