Separated coffee into separate file and made a ton of fixes

Signed-off-by: Diwank Singh <diwank.singh@gmail.com>