Add function to recognise keywords
Clean up input handling
Implement basic fork/exec routine