remove using namespace std; + other improvements