Formatting, added comment explaining whats going on in there