implemented declaration codegen for GAPL & refactored some pretty printer stuff