Add copyright header.
Fix assignation operator and memory leak.
Add doxygen documentation