Added configuration options in the admin to avoid harcoding values

Hey James, 

I added a few lines of code to avoid having to hardcode values in the source.

Would be great if you could merge. Tell me if there's any problem.

-Hugues