Formatting fixed, movement functions added.