Handle input
Added ClearMap() and cleaned commented std::cout statements.
No static linking on Linux