removed unused lib and proc imports, add flightloop callback interval constant
add module partitioning, minor formatting changes