Moved bins.m to format and other minor changes

Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>