Moved Panel to it's own module.
Quick code reformat.