Added error handling, intel pstate support and factory Cpu creation. Some renames