Create Peacock class, and added more error reporting and handling.