First commit of working code with vertical rotation and some broken scaling