Styling change and redid string manipulation

Replaced all malloc,sprintf and starkest with asprintf because of
automated memory allocation. For security etc. Also cleaned up
formatting, added spaces to functions for readability.
Got rid of plate binary

See summary