add compile instructions to readme

Added some instructions to compile the code in readme file.