Add the main functionality of the project

Using external gem called bindata for handling binary data.