Correct bad usage of reserved word "error"
Add package path for ns3 and add flush by line