code and pre, udated readme and example