Parser functions implementation, added handleOutput method to commands