closed issue #6 and #10 (github). Thanks to Diego Herranz for submitting the issues.