Fixed console and postinstall

Add console application
Add postinstall command