Removed superfluous usings
Main now injects device size dependency
Added some inheritance to reduce code duplication