Master compiles

Changed compilation to happen in Master instead of Worker nodes