Beautification

Made random comments into docstrings, created dedicated escape function