added code version to pattern
added alignment patterns
changed convert_to_bin function
code improved
add_data function fixed
added interface and .bmp checking
fixed bug in create_data function