added utf-8 header and moved object creation into __main__