generate_sign ()

needs to strip string from all spaces, thats all left to do.
updated comments