fixing double comparisons and refactoring mathematical functions
refactored methods in main to their own app, added adjacent voxel lengths with scaling. Also allowed for lookup of line ids passing through each voxel