Hydra code
Adding rotation
Minor fixes
merged Hydra