Better type handling
- int() and float() used explicitly when needed
- no assumptions of type
- removed unnecessary int() in angle estimation - makes lines more
  accurate