Big update. More robust H detection
Updated comments to better describe functions
 Updates code to latest, added more comments
Updated code, removed unused classes