Refactored a little, added a global preference list
fixed bug where app crashes if no price was inputed