Development

I cancel previous pull request because I thought there was causing an error with scanning (the scanning input barcodes didn't appeared) . After reviewing I have seen that the error was not related with my changes. 
In this new version I add the bugfix for the scanning input problem.