Added some docstrings to improve pycharm integration. Added an try around the WINFUNC
Minor changes to do with padding