Removed instance of 'using namespace std'
Fixed compiler errors and inlines some of the qs_parse functions