Added let to rowan and ref semantics. Refactored app in ref.