Fixed bugs, added deployment script