added documentation + corrected compile test