Move internal headers to src/ directory.
Don't forget about escaping.
Don't use $CURDIR.
Generate doxygen documentation.
Fix typo.