Add documentation for bacon

Added some better comments in the files.