string to char array fixed
revamped functions
basic commands work without flags