Migration to netbeans.
Fixed mem leaks; unit vibration