Change the license of Emperor to BSD

All files were changed to a BSD license and some functions were changed
as a consequence of this.
Add use of ternary operator for formatting

Using python built-in ternary operator, you can remove some unnecessary
extra lines in the code and buy a little more clarity.

Thanks @antgonza
Merge pull request #197 from ElDeveloper/to_BSD

[important] Change license of Emperor to BSD