Fixed potential whitespace issues in HdpHMethod to ensure the threads are set correctly
General code tidy up. Adding more default parameters