Cleaned code, added pseudo interactive commends