added license and documentation
added doc strings
deleted some stuff we do not need
deleted stuff we do not need
added function for nonascii characters
updated documentations