added command line parser
Using WeakReference for static __exportedPins values

When not calling dispose, they could never automaticly garbage
collected, because _exportedPins have always a reference to it. Using
WeakReference will solve it.