oned Functions

Added some oned functions for analysing cuts. Also decided to at least try and comment the code....