Library/create_port.py: fix bug and improvements.

Signed-off-by: Rudá Moura <ruda.moura@gmail.com>
Add new rule: static plus improve help message (make help).

Signed-off-by: Rudá Moura <ruda.moura@gmail.com>